package edu.zut.phf.message.service;

import edu.zut.phf.message.domain.MyMessage;

public class MySender implements MyProducer {
    private MyReceiver receiver;

    public MySender(MyReceiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void produce(MyMessage message) {
        receiver.consume(message);
    }
}